<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - self_test2.info - /usr/include/bits/unistd.h</title>
  <link rel="stylesheet" type="text/css" href="../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../index.html">top level</a> - <a href="index.html">usr/include/bits</a> - unistd.h<span style="font-size: 80%;"> (source / <a href="unistd.h.func.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">self_test2.info</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">2</td>
            <td class="headerCovTableEntry">12</td>
            <td class="headerCovTableEntryLo">16.7 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2011-07-03</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntryHi">-</td>
          </tr>
          <tr>
            <td></td>
            <td></td>
            <td></td>
            <td class="headerItem">Branches:</td>
            <td class="headerCovTableEntry">1</td>
            <td class="headerCovTableEntry">18</td>
            <td class="headerCovTableEntryLo">5.6 %</td>
          </tr>
          <tr><td><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">           Branch data     Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>                :            : /* Checking macros for unistd functions.</a>
<span class="lineNum">       2 </span>                :            :    Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
<span class="lineNum">       3 </span>                :            :    This file is part of the GNU C Library.
<span class="lineNum">       4 </span>                :            : 
<span class="lineNum">       5 </span>                :            :    The GNU C Library is free software; you can redistribute it and/or
<span class="lineNum">       6 </span>                :            :    modify it under the terms of the GNU Lesser General Public
<span class="lineNum">       7 </span>                :            :    License as published by the Free Software Foundation; either
<span class="lineNum">       8 </span>                :            :    version 2.1 of the License, or (at your option) any later version.
<span class="lineNum">       9 </span>                :            : 
<span class="lineNum">      10 </span>                :            :    The GNU C Library is distributed in the hope that it will be useful,
<span class="lineNum">      11 </span>                :            :    but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      12 </span>                :            :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
<span class="lineNum">      13 </span>                :            :    Lesser General Public License for more details.
<span class="lineNum">      14 </span>                :            : 
<span class="lineNum">      15 </span>                :            :    You should have received a copy of the GNU Lesser General Public
<span class="lineNum">      16 </span>                :            :    License along with the GNU C Library; if not, write to the Free
<span class="lineNum">      17 </span>                :            :    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
<span class="lineNum">      18 </span>                :            :    02111-1307 USA.  */
<span class="lineNum">      19 </span>                :            : 
<span class="lineNum">      20 </span>                :            : #ifndef _UNISTD_H
<span class="lineNum">      21 </span>                :            : # error &quot;Never include &lt;bits/unistd.h&gt; directly; use &lt;unistd.h&gt; instead.&quot;
<span class="lineNum">      22 </span>                :            : #endif
<span class="lineNum">      23 </span>                :            : 
<span class="lineNum">      24 </span>                :            : extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      25 </span>                :            :                            size_t __buflen) __wur;
<span class="lineNum">      26 </span>                :            : extern ssize_t __REDIRECT (__read_alias, (int __fd, void *__buf,
<span class="lineNum">      27 </span>                :            :                                           size_t __nbytes), read) __wur;
<span class="lineNum">      28 </span>                :            : extern ssize_t __REDIRECT (__read_chk_warn,
<span class="lineNum">      29 </span>                :            :                            (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      30 </span>                :            :                             size_t __buflen), __read_chk)
<span class="lineNum">      31 </span>                :            :      __wur __warnattr (&quot;read called with bigger length than size of &quot;
<span class="lineNum">      32 </span>                :            :                        &quot;the destination buffer&quot;);
<span class="lineNum">      33 </span>                :            : 
<span class="lineNum">      34 </span>                :            : __extern_always_inline __wur ssize_t
<span class="lineNum">      35 </span>                :            : read (int __fd, void *__buf, size_t __nbytes)
<span class="lineNum">      36 </span>                :            : {
<span class="lineNum">      37 </span>[<span class="branchNoCov" title="Branch 1 was not taken"> - </span><span class="branchCov" title="Branch 2 was taken 4 times"> + </span>][<span class="branchNoExec" title="Branch 4 was not executed"> # </span><span class="branchNoExec" title="Branch 5 was not executed"> # </span>]:<span class="lineCov">          4 :   if (__bos0 (__buf) != (size_t) -1)</span>
<span class="lineNum">      38 </span>                :            :     {
<span class="lineNum">      39 </span>[<span class="branchNoExec" title="Branch 1 was not executed"> # </span><span class="branchNoExec" title="Branch 2 was not executed"> # </span>][<span class="branchNoExec" title="Branch 4 was not executed"> # </span><span class="branchNoExec" title="Branch 5 was not executed"> # </span>]:<span class="lineNoCov">          0 :       if (!__builtin_constant_p (__nbytes))</span>
<span class="lineNum">      40 </span>                :<span class="lineNoCov">          0 :         return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));</span>
<span class="lineNum">      41 </span>                :            : 
<span class="lineNum">      42 </span>[<span class="branchNoExec" title="Branch 1 was not executed"> # </span><span class="branchNoExec" title="Branch 2 was not executed"> # </span>][<span class="branchNoExec" title="Branch 4 was not executed"> # </span><span class="branchNoExec" title="Branch 5 was not executed"> # </span>]:<span class="lineNoCov">          0 :       if (__nbytes &gt; __bos0 (__buf))</span>
<span class="lineNum">      43 </span>                :<span class="lineNoCov">          0 :         return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));</span>
<span class="lineNum">      44 </span>                :            :     }
<span class="lineNum">      45 </span>                :<span class="lineCov">          4 :   return __read_alias (__fd, __buf, __nbytes);</span>
<span class="lineNum">      46 </span>                :            : }
<span class="lineNum">      47 </span>                :            : 
<span class="lineNum">      48 </span>                :            : #ifdef __USE_UNIX98
<span class="lineNum">      49 </span>                :            : extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      50 </span>                :            :                             __off_t __offset, size_t __bufsize) __wur;
<span class="lineNum">      51 </span>                :            : extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      52 </span>                :            :                               __off64_t __offset, size_t __bufsize) __wur;
<span class="lineNum">      53 </span>                :            : extern ssize_t __REDIRECT (__pread_alias,
<span class="lineNum">      54 </span>                :            :                            (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      55 </span>                :            :                             __off_t __offset), pread) __wur;
<span class="lineNum">      56 </span>                :            : extern ssize_t __REDIRECT (__pread64_alias,
<span class="lineNum">      57 </span>                :            :                            (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      58 </span>                :            :                             __off64_t __offset), pread64) __wur;
<span class="lineNum">      59 </span>                :            : extern ssize_t __REDIRECT (__pread_chk_warn,
<span class="lineNum">      60 </span>                :            :                            (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      61 </span>                :            :                             __off_t __offset, size_t __bufsize), __pread_chk)
<span class="lineNum">      62 </span>                :            :      __wur __warnattr (&quot;pread called with bigger length than size of &quot;
<span class="lineNum">      63 </span>                :            :                        &quot;the destination buffer&quot;);
<span class="lineNum">      64 </span>                :            : extern ssize_t __REDIRECT (__pread64_chk_warn,
<span class="lineNum">      65 </span>                :            :                            (int __fd, void *__buf, size_t __nbytes,
<span class="lineNum">      66 </span>                :            :                             __off64_t __offset, size_t __bufsize),
<span class="lineNum">      67 </span>                :            :                             __pread64_chk)
<span class="lineNum">      68 </span>                :            :      __wur __warnattr (&quot;pread64 called with bigger length than size of &quot;
<span class="lineNum">      69 </span>                :            :                        &quot;the destination buffer&quot;);
<span class="lineNum">      70 </span>                :            : 
<span class="lineNum">      71 </span>                :            : # ifndef __USE_FILE_OFFSET64
<span class="lineNum">      72 </span>                :            : __extern_always_inline __wur ssize_t
<span class="lineNum">      73 </span>                :            : pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset)
<span class="lineNum">      74 </span>                :            : {
<span class="lineNum">      75 </span>                :            :   if (__bos0 (__buf) != (size_t) -1)
<span class="lineNum">      76 </span>                :            :     {
<span class="lineNum">      77 </span>                :            :       if (!__builtin_constant_p (__nbytes))
<span class="lineNum">      78 </span>                :            :         return __pread_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf));
<span class="lineNum">      79 </span>                :            : 
<span class="lineNum">      80 </span>                :            :       if ( __nbytes &gt; __bos0 (__buf))
<span class="lineNum">      81 </span>                :            :         return __pread_chk_warn (__fd, __buf, __nbytes, __offset,
<span class="lineNum">      82 </span>                :            :                                  __bos0 (__buf));
<span class="lineNum">      83 </span>                :            :     }
<span class="lineNum">      84 </span>                :            :   return __pread_alias (__fd, __buf, __nbytes, __offset);
<span class="lineNum">      85 </span>                :            : }
<span class="lineNum">      86 </span>                :            : # else
<span class="lineNum">      87 </span>                :            : __extern_always_inline __wur ssize_t
<span class="lineNum">      88 </span>                :            : pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
<span class="lineNum">      89 </span>                :            : {
<span class="lineNum">      90 </span>                :            :   if (__bos0 (__buf) != (size_t) -1)
<span class="lineNum">      91 </span>                :            :     {
<span class="lineNum">      92 </span>                :            :       if (!__builtin_constant_p (__nbytes))
<span class="lineNum">      93 </span>                :            :         return __pread64_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf));
<span class="lineNum">      94 </span>                :            : 
<span class="lineNum">      95 </span>                :            :       if ( __nbytes &gt; __bos0 (__buf))
<span class="lineNum">      96 </span>                :            :         return __pread64_chk_warn (__fd, __buf, __nbytes, __offset,
<span class="lineNum">      97 </span>                :            :                                    __bos0 (__buf));
<span class="lineNum">      98 </span>                :            :     }
<span class="lineNum">      99 </span>                :            : 
<span class="lineNum">     100 </span>                :            :   return __pread64_alias (__fd, __buf, __nbytes, __offset);
<span class="lineNum">     101 </span>                :            : }
<span class="lineNum">     102 </span>                :            : # endif
<span class="lineNum">     103 </span>                :            : 
<span class="lineNum">     104 </span>                :            : # ifdef __USE_LARGEFILE64
<span class="lineNum">     105 </span>                :            : __extern_always_inline __wur ssize_t
<span class="lineNum">     106 </span>                :            : pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
<span class="lineNum">     107 </span>                :            : {
<span class="lineNum">     108 </span>                :            :   if (__bos0 (__buf) != (size_t) -1)
<span class="lineNum">     109 </span>                :            :     {
<span class="lineNum">     110 </span>                :            :       if (!__builtin_constant_p (__nbytes))
<span class="lineNum">     111 </span>                :            :         return __pread64_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf));
<span class="lineNum">     112 </span>                :            : 
<span class="lineNum">     113 </span>                :            :       if ( __nbytes &gt; __bos0 (__buf))
<span class="lineNum">     114 </span>                :            :         return __pread64_chk_warn (__fd, __buf, __nbytes, __offset,
<span class="lineNum">     115 </span>                :            :                                    __bos0 (__buf));
<span class="lineNum">     116 </span>                :            :     }
<span class="lineNum">     117 </span>                :            : 
<span class="lineNum">     118 </span>                :            :   return __pread64_alias (__fd, __buf, __nbytes, __offset);
<span class="lineNum">     119 </span>                :            : }
<span class="lineNum">     120 </span>                :            : # endif
<span class="lineNum">     121 </span>                :            : #endif
<span class="lineNum">     122 </span>                :            : 
<span class="lineNum">     123 </span>                :            : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
<span class="lineNum">     124 </span>                :            : extern ssize_t __readlink_chk (__const char *__restrict __path,
<span class="lineNum">     125 </span>                :            :                                char *__restrict __buf, size_t __len,
<span class="lineNum">     126 </span>                :            :                                size_t __buflen)
<span class="lineNum">     127 </span>                :            :      __THROW __nonnull ((1, 2)) __wur;
<span class="lineNum">     128 </span>                :            : extern ssize_t __REDIRECT_NTH (__readlink_alias,
<span class="lineNum">     129 </span>                :            :                                (__const char *__restrict __path,
<span class="lineNum">     130 </span>                :            :                                 char *__restrict __buf, size_t __len), readlink)
<span class="lineNum">     131 </span>                :            :      __nonnull ((1, 2)) __wur;
<span class="lineNum">     132 </span>                :            : extern ssize_t __REDIRECT_NTH (__readlink_chk_warn,
<span class="lineNum">     133 </span>                :            :                                (__const char *__restrict __path,
<span class="lineNum">     134 </span>                :            :                                 char *__restrict __buf, size_t __len,
<span class="lineNum">     135 </span>                :            :                                 size_t __buflen), __readlink_chk)
<span class="lineNum">     136 </span>                :            :      __nonnull ((1, 2)) __wur __warnattr (&quot;readlink called with bigger length &quot;
<span class="lineNum">     137 </span>                :            :                                           &quot;than size of destination buffer&quot;);
<span class="lineNum">     138 </span>                :            : 
<span class="lineNum">     139 </span>                :            : __extern_always_inline __nonnull ((1, 2)) __wur ssize_t
<span class="lineNum">     140 </span>                :            : __NTH (readlink (__const char *__restrict __path, char *__restrict __buf,
<span class="lineNum">     141 </span>                :            :                  size_t __len))
<span class="lineNum">     142 </span>                :            : {
<span class="lineNum">     143 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     144 </span>                :            :     {
<span class="lineNum">     145 </span>                :            :       if (!__builtin_constant_p (__len))
<span class="lineNum">     146 </span>                :            :         return __readlink_chk (__path, __buf, __len, __bos (__buf));
<span class="lineNum">     147 </span>                :            : 
<span class="lineNum">     148 </span>                :            :       if ( __len &gt; __bos (__buf))
<span class="lineNum">     149 </span>                :            :         return __readlink_chk_warn (__path, __buf, __len, __bos (__buf));
<span class="lineNum">     150 </span>                :            :     }
<span class="lineNum">     151 </span>                :            :   return __readlink_alias (__path, __buf, __len);
<span class="lineNum">     152 </span>                :            : }
<span class="lineNum">     153 </span>                :            : #endif
<span class="lineNum">     154 </span>                :            : 
<span class="lineNum">     155 </span>                :            : #ifdef __USE_ATFILE
<span class="lineNum">     156 </span>                :            : extern ssize_t __readlinkat_chk (int __fd, __const char *__restrict __path,
<span class="lineNum">     157 </span>                :            :                                  char *__restrict __buf, size_t __len,
<span class="lineNum">     158 </span>                :            :                                  size_t __buflen)
<span class="lineNum">     159 </span>                :            :      __THROW __nonnull ((2, 3)) __wur;
<span class="lineNum">     160 </span>                :            : extern ssize_t __REDIRECT_NTH (__readlinkat_alias,
<span class="lineNum">     161 </span>                :            :                                (int __fd, __const char *__restrict __path,
<span class="lineNum">     162 </span>                :            :                                 char *__restrict __buf, size_t __len),
<span class="lineNum">     163 </span>                :            :                                readlinkat)
<span class="lineNum">     164 </span>                :            :      __nonnull ((2, 3)) __wur;
<span class="lineNum">     165 </span>                :            : extern ssize_t __REDIRECT_NTH (__readlinkat_chk_warn,
<span class="lineNum">     166 </span>                :            :                                (int __fd, __const char *__restrict __path,
<span class="lineNum">     167 </span>                :            :                                 char *__restrict __buf, size_t __len,
<span class="lineNum">     168 </span>                :            :                                 size_t __buflen), __readlinkat_chk)
<span class="lineNum">     169 </span>                :            :      __nonnull ((2, 3)) __wur __warnattr (&quot;readlinkat called with bigger &quot;
<span class="lineNum">     170 </span>                :            :                                           &quot;length than size of destination &quot;
<span class="lineNum">     171 </span>                :            :                                           &quot;buffer&quot;);
<span class="lineNum">     172 </span>                :            : 
<span class="lineNum">     173 </span>                :            : __extern_always_inline __nonnull ((2, 3)) __wur ssize_t
<span class="lineNum">     174 </span>                :            : __NTH (readlinkat (int __fd, __const char *__restrict __path,
<span class="lineNum">     175 </span>                :            :                    char *__restrict __buf, size_t __len))
<span class="lineNum">     176 </span>                :            : {
<span class="lineNum">     177 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     178 </span>                :            :     {
<span class="lineNum">     179 </span>                :            :       if (!__builtin_constant_p (__len))
<span class="lineNum">     180 </span>                :            :         return __readlinkat_chk (__fd, __path, __buf, __len, __bos (__buf));
<span class="lineNum">     181 </span>                :            : 
<span class="lineNum">     182 </span>                :            :       if (__len &gt; __bos (__buf))
<span class="lineNum">     183 </span>                :            :         return __readlinkat_chk_warn (__fd, __path, __buf, __len,
<span class="lineNum">     184 </span>                :            :                                       __bos (__buf));
<span class="lineNum">     185 </span>                :            :     }
<span class="lineNum">     186 </span>                :            :   return __readlinkat_alias (__fd, __path, __buf, __len);
<span class="lineNum">     187 </span>                :            : }
<span class="lineNum">     188 </span>                :            : #endif
<span class="lineNum">     189 </span>                :            : 
<span class="lineNum">     190 </span>                :            : extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
<span class="lineNum">     191 </span>                :            :      __THROW __wur;
<span class="lineNum">     192 </span>                :            : extern char *__REDIRECT_NTH (__getcwd_alias,
<span class="lineNum">     193 </span>                :            :                              (char *__buf, size_t __size), getcwd) __wur;
<span class="lineNum">     194 </span>                :            : extern char *__REDIRECT_NTH (__getcwd_chk_warn,
<span class="lineNum">     195 </span>                :            :                              (char *__buf, size_t __size, size_t __buflen),
<span class="lineNum">     196 </span>                :            :                              __getcwd_chk)
<span class="lineNum">     197 </span>                :            :      __wur __warnattr (&quot;getcwd caller with bigger length than size of &quot;
<span class="lineNum">     198 </span>                :            :                        &quot;destination buffer&quot;);
<span class="lineNum">     199 </span>                :            : 
<span class="lineNum">     200 </span>                :            : __extern_always_inline __wur char *
<span class="lineNum">     201 </span>                :            : __NTH (getcwd (char *__buf, size_t __size))
<span class="lineNum">     202 </span>                :            : {
<span class="lineNum">     203 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     204 </span>                :            :     {
<span class="lineNum">     205 </span>                :            :       if (!__builtin_constant_p (__size))
<span class="lineNum">     206 </span>                :            :         return __getcwd_chk (__buf, __size, __bos (__buf));
<span class="lineNum">     207 </span>                :            : 
<span class="lineNum">     208 </span>                :            :       if (__size &gt; __bos (__buf))
<span class="lineNum">     209 </span>                :            :         return __getcwd_chk_warn (__buf, __size, __bos (__buf));
<span class="lineNum">     210 </span>                :            :     }
<span class="lineNum">     211 </span>                :            :   return __getcwd_alias (__buf, __size);
<span class="lineNum">     212 </span>                :            : }
<span class="lineNum">     213 </span>                :            : 
<span class="lineNum">     214 </span>                :            : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     215 </span>                :            : extern char *__getwd_chk (char *__buf, size_t buflen)
<span class="lineNum">     216 </span>                :            :      __THROW __nonnull ((1)) __wur;
<span class="lineNum">     217 </span>                :            : extern char *__REDIRECT_NTH (__getwd_warn, (char *__buf), getwd)
<span class="lineNum">     218 </span>                :            :      __nonnull ((1)) __wur __warnattr (&quot;please use getcwd instead, as getwd &quot;
<span class="lineNum">     219 </span>                :            :                                        &quot;doesn't specify buffer size&quot;);
<span class="lineNum">     220 </span>                :            : 
<span class="lineNum">     221 </span>                :            : __extern_always_inline __nonnull ((1)) __attribute_deprecated__ __wur char *
<span class="lineNum">     222 </span>                :            : __NTH (getwd (char *__buf))
<span class="lineNum">     223 </span>                :            : {
<span class="lineNum">     224 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     225 </span>                :            :     return __getwd_chk (__buf, __bos (__buf));
<span class="lineNum">     226 </span>                :            :   return __getwd_warn (__buf);
<span class="lineNum">     227 </span>                :            : }
<span class="lineNum">     228 </span>                :            : #endif
<span class="lineNum">     229 </span>                :            : 
<span class="lineNum">     230 </span>                :            : extern size_t __confstr_chk (int __name, char *__buf, size_t __len,
<span class="lineNum">     231 </span>                :            :                              size_t __buflen) __THROW;
<span class="lineNum">     232 </span>                :            : extern size_t __REDIRECT_NTH (__confstr_alias, (int __name, char *__buf,
<span class="lineNum">     233 </span>                :            :                                                 size_t __len), confstr);
<span class="lineNum">     234 </span>                :            : extern size_t __REDIRECT_NTH (__confstr_chk_warn,
<span class="lineNum">     235 </span>                :            :                               (int __name, char *__buf, size_t __len,
<span class="lineNum">     236 </span>                :            :                                size_t __buflen), __confstr_chk)
<span class="lineNum">     237 </span>                :            :      __warnattr (&quot;confstr called with bigger length than size of destination &quot;
<span class="lineNum">     238 </span>                :            :                  &quot;buffer&quot;);
<span class="lineNum">     239 </span>                :            : 
<span class="lineNum">     240 </span>                :            : __extern_always_inline size_t
<span class="lineNum">     241 </span>                :            : __NTH (confstr (int __name, char *__buf, size_t __len))
<span class="lineNum">     242 </span>                :            : {
<span class="lineNum">     243 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     244 </span>                :            :     {
<span class="lineNum">     245 </span>                :            :       if (!__builtin_constant_p (__len))
<span class="lineNum">     246 </span>                :            :         return __confstr_chk (__name, __buf, __len, __bos (__buf));
<span class="lineNum">     247 </span>                :            : 
<span class="lineNum">     248 </span>                :            :       if (__bos (__buf) &lt; __len)
<span class="lineNum">     249 </span>                :            :         return __confstr_chk_warn (__name, __buf, __len, __bos (__buf));
<span class="lineNum">     250 </span>                :            :     }
<span class="lineNum">     251 </span>                :            :   return __confstr_alias (__name, __buf, __len);
<span class="lineNum">     252 </span>                :            : }
<span class="lineNum">     253 </span>                :            : 
<span class="lineNum">     254 </span>                :            : 
<span class="lineNum">     255 </span>                :            : extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen)
<span class="lineNum">     256 </span>                :            :      __THROW __wur;
<span class="lineNum">     257 </span>                :            : extern int __REDIRECT_NTH (__getgroups_alias, (int __size, __gid_t __list[]),
<span class="lineNum">     258 </span>                :            :                            getgroups) __wur;
<span class="lineNum">     259 </span>                :            : extern int __REDIRECT_NTH (__getgroups_chk_warn,
<span class="lineNum">     260 </span>                :            :                            (int __size, __gid_t __list[], size_t __listlen),
<span class="lineNum">     261 </span>                :            :                            __getgroups_chk)
<span class="lineNum">     262 </span>                :            :      __wur __warnattr (&quot;getgroups called with bigger group count than what &quot;
<span class="lineNum">     263 </span>                :            :                        &quot;can fit into destination buffer&quot;);
<span class="lineNum">     264 </span>                :            : 
<span class="lineNum">     265 </span>                :            : __extern_always_inline int
<span class="lineNum">     266 </span>                :            : __NTH (getgroups (int __size, __gid_t __list[]))
<span class="lineNum">     267 </span>                :            : {
<span class="lineNum">     268 </span>                :            :   if (__bos (__list) != (size_t) -1)
<span class="lineNum">     269 </span>                :            :     {
<span class="lineNum">     270 </span>                :            :       if (!__builtin_constant_p (__size) || __size &lt; 0)
<span class="lineNum">     271 </span>                :            :         return __getgroups_chk (__size, __list, __bos (__list));
<span class="lineNum">     272 </span>                :            : 
<span class="lineNum">     273 </span>                :            :       if (__size * sizeof (__gid_t) &gt; __bos (__list))
<span class="lineNum">     274 </span>                :            :         return __getgroups_chk_warn (__size, __list, __bos (__list));
<span class="lineNum">     275 </span>                :            :     }
<span class="lineNum">     276 </span>                :            :   return __getgroups_alias (__size, __list);
<span class="lineNum">     277 </span>                :            : }
<span class="lineNum">     278 </span>                :            : 
<span class="lineNum">     279 </span>                :            : 
<span class="lineNum">     280 </span>                :            : extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen,
<span class="lineNum">     281 </span>                :            :                             size_t __nreal) __THROW __nonnull ((2));
<span class="lineNum">     282 </span>                :            : extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf,
<span class="lineNum">     283 </span>                :            :                                                size_t __buflen), ttyname_r)
<span class="lineNum">     284 </span>                :            :      __nonnull ((2));
<span class="lineNum">     285 </span>                :            : extern int __REDIRECT_NTH (__ttyname_r_chk_warn,
<span class="lineNum">     286 </span>                :            :                            (int __fd, char *__buf, size_t __buflen,
<span class="lineNum">     287 </span>                :            :                             size_t __nreal), __ttyname_r_chk)
<span class="lineNum">     288 </span>                :            :      __nonnull ((2)) __warnattr (&quot;ttyname_r called with bigger buflen than &quot;
<span class="lineNum">     289 </span>                :            :                                  &quot;size of destination buffer&quot;);
<span class="lineNum">     290 </span>                :            : 
<span class="lineNum">     291 </span>                :            : __extern_always_inline int
<span class="lineNum">     292 </span>                :            : __NTH (ttyname_r (int __fd, char *__buf, size_t __buflen))
<span class="lineNum">     293 </span>                :            : {
<span class="lineNum">     294 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     295 </span>                :            :     {
<span class="lineNum">     296 </span>                :            :       if (!__builtin_constant_p (__buflen))
<span class="lineNum">     297 </span>                :            :         return __ttyname_r_chk (__fd, __buf, __buflen, __bos (__buf));
<span class="lineNum">     298 </span>                :            : 
<span class="lineNum">     299 </span>                :            :       if (__buflen &gt; __bos (__buf))
<span class="lineNum">     300 </span>                :            :         return __ttyname_r_chk_warn (__fd, __buf, __buflen, __bos (__buf));
<span class="lineNum">     301 </span>                :            :     }
<span class="lineNum">     302 </span>                :            :   return __ttyname_r_alias (__fd, __buf, __buflen);
<span class="lineNum">     303 </span>                :            : }
<span class="lineNum">     304 </span>                :            : 
<span class="lineNum">     305 </span>                :            : 
<span class="lineNum">     306 </span>                :            : #if defined __USE_REENTRANT || defined __USE_POSIX199506
<span class="lineNum">     307 </span>                :            : extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal)
<span class="lineNum">     308 </span>                :            :      __nonnull ((1));
<span class="lineNum">     309 </span>                :            : extern int __REDIRECT (__getlogin_r_alias, (char *__buf, size_t __buflen),
<span class="lineNum">     310 </span>                :            :                        getlogin_r) __nonnull ((1));
<span class="lineNum">     311 </span>                :            : extern int __REDIRECT (__getlogin_r_chk_warn,
<span class="lineNum">     312 </span>                :            :                        (char *__buf, size_t __buflen, size_t __nreal),
<span class="lineNum">     313 </span>                :            :                        __getlogin_r_chk)
<span class="lineNum">     314 </span>                :            :      __nonnull ((1)) __warnattr (&quot;getlogin_r called with bigger buflen than &quot;
<span class="lineNum">     315 </span>                :            :                                  &quot;size of destination buffer&quot;);
<span class="lineNum">     316 </span>                :            : 
<span class="lineNum">     317 </span>                :            : __extern_always_inline int
<span class="lineNum">     318 </span>                :            : getlogin_r (char *__buf, size_t __buflen)
<span class="lineNum">     319 </span>                :            : {
<span class="lineNum">     320 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     321 </span>                :            :     {
<span class="lineNum">     322 </span>                :            :       if (!__builtin_constant_p (__buflen))
<span class="lineNum">     323 </span>                :            :         return __getlogin_r_chk (__buf, __buflen, __bos (__buf));
<span class="lineNum">     324 </span>                :            : 
<span class="lineNum">     325 </span>                :            :       if (__buflen &gt; __bos (__buf))
<span class="lineNum">     326 </span>                :            :         return __getlogin_r_chk_warn (__buf, __buflen, __bos (__buf));
<span class="lineNum">     327 </span>                :            :     }
<span class="lineNum">     328 </span>                :            :   return __getlogin_r_alias (__buf, __buflen);
<span class="lineNum">     329 </span>                :            : }
<span class="lineNum">     330 </span>                :            : #endif
<span class="lineNum">     331 </span>                :            : 
<span class="lineNum">     332 </span>                :            : 
<span class="lineNum">     333 </span>                :            : #if defined __USE_BSD || defined __USE_UNIX98
<span class="lineNum">     334 </span>                :            : extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal)
<span class="lineNum">     335 </span>                :            :      __THROW __nonnull ((1));
<span class="lineNum">     336 </span>                :            : extern int __REDIRECT_NTH (__gethostname_alias, (char *__buf, size_t __buflen),
<span class="lineNum">     337 </span>                :            :                            gethostname) __nonnull ((1));
<span class="lineNum">     338 </span>                :            : extern int __REDIRECT_NTH (__gethostname_chk_warn,
<span class="lineNum">     339 </span>                :            :                            (char *__buf, size_t __buflen, size_t __nreal),
<span class="lineNum">     340 </span>                :            :                            __gethostname_chk)
<span class="lineNum">     341 </span>                :            :      __nonnull ((1)) __warnattr (&quot;gethostname called with bigger buflen than &quot;
<span class="lineNum">     342 </span>                :            :                                  &quot;size of destination buffer&quot;);
<span class="lineNum">     343 </span>                :            : 
<span class="lineNum">     344 </span>                :            : __extern_always_inline int
<span class="lineNum">     345 </span>                :            : __NTH (gethostname (char *__buf, size_t __buflen))
<span class="lineNum">     346 </span>                :            : {
<span class="lineNum">     347 </span>        [<span class="branchNoExec" title="Branch 1 was not executed"> # </span><span class="branchNoExec" title="Branch 2 was not executed"> # </span>]:<span class="lineNoCov">          0 :   if (__bos (__buf) != (size_t) -1)</span>
<span class="lineNum">     348 </span>                :            :     {
<span class="lineNum">     349 </span>        [<span class="branchNoExec" title="Branch 1 was not executed"> # </span><span class="branchNoExec" title="Branch 2 was not executed"> # </span>]:<span class="lineNoCov">          0 :       if (!__builtin_constant_p (__buflen))</span>
<span class="lineNum">     350 </span>                :<span class="lineNoCov">          0 :         return __gethostname_chk (__buf, __buflen, __bos (__buf));</span>
<span class="lineNum">     351 </span>                :            : 
<span class="lineNum">     352 </span>        [<span class="branchNoExec" title="Branch 1 was not executed"> # </span><span class="branchNoExec" title="Branch 2 was not executed"> # </span>]:<span class="lineNoCov">          0 :       if (__buflen &gt; __bos (__buf))</span>
<span class="lineNum">     353 </span>                :<span class="lineNoCov">          0 :         return __gethostname_chk_warn (__buf, __buflen, __bos (__buf));</span>
<span class="lineNum">     354 </span>                :            :     }
<span class="lineNum">     355 </span>                :<span class="lineNoCov">          0 :   return __gethostname_alias (__buf, __buflen);</span>
<span class="lineNum">     356 </span>                :            : }
<span class="lineNum">     357 </span>                :            : #endif
<span class="lineNum">     358 </span>                :            : 
<span class="lineNum">     359 </span>                :            : 
<span class="lineNum">     360 </span>                :            : #if defined __USE_BSD || (defined __USE_XOPEN &amp;&amp; !defined __USE_UNIX98)
<span class="lineNum">     361 </span>                :            : extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal)
<span class="lineNum">     362 </span>                :            :      __THROW __nonnull ((1)) __wur;
<span class="lineNum">     363 </span>                :            : extern int __REDIRECT_NTH (__getdomainname_alias, (char *__buf,
<span class="lineNum">     364 </span>                :            :                                                    size_t __buflen),
<span class="lineNum">     365 </span>                :            :                            getdomainname) __nonnull ((1)) __wur;
<span class="lineNum">     366 </span>                :            : extern int __REDIRECT_NTH (__getdomainname_chk_warn,
<span class="lineNum">     367 </span>                :            :                            (char *__buf, size_t __buflen, size_t __nreal),
<span class="lineNum">     368 </span>                :            :                            __getdomainname_chk)
<span class="lineNum">     369 </span>                :            :      __nonnull ((1)) __wur __warnattr (&quot;getdomainname called with bigger &quot;
<span class="lineNum">     370 </span>                :            :                                        &quot;buflen than size of destination &quot;
<span class="lineNum">     371 </span>                :            :                                        &quot;buffer&quot;);
<span class="lineNum">     372 </span>                :            : 
<span class="lineNum">     373 </span>                :            : __extern_always_inline int
<span class="lineNum">     374 </span>                :            : __NTH (getdomainname (char *__buf, size_t __buflen))
<span class="lineNum">     375 </span>                :            : {
<span class="lineNum">     376 </span>                :            :   if (__bos (__buf) != (size_t) -1)
<span class="lineNum">     377 </span>                :            :     {
<span class="lineNum">     378 </span>                :            :       if (!__builtin_constant_p (__buflen))
<span class="lineNum">     379 </span>                :            :         return __getdomainname_chk (__buf, __buflen, __bos (__buf));
<span class="lineNum">     380 </span>                :            : 
<span class="lineNum">     381 </span>                :            :       if (__buflen &gt; __bos (__buf))
<span class="lineNum">     382 </span>                :            :         return __getdomainname_chk_warn (__buf, __buflen, __bos (__buf));
<span class="lineNum">     383 </span>                :            :     }
<span class="lineNum">     384 </span>                :            :   return __getdomainname_alias (__buf, __buflen);
<span class="lineNum">     385 </span>                :            : }
<span class="lineNum">     386 </span>                :            : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.9</a></td></tr>
  </table>
  <br>

</body>
</html>
